const expree = require('express')
const app = expree()
app.use((req, res, next) => {
  console.log('middler war1')
  next()
})
// path匹配中间件
app.use('/home', (req, res, next) => {
  console.log('middler ware2')
  next()
  res.end('ware')
})
// 中间插入一个中间件
app.use((req, res, next) => {
  console.log('middler war3')
})
app.listen(8005, () => {
  console.log('express出一眼')
})